package com.dyna.domain.form.item;

import com.dyna.constants.DateFatter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @description items
 * @author zcw
 * @date 2025-02-27
 */
@Data
@ApiModel("items")
public class ItemsForm implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty("物品id")
    private Long itemId;


    @ApiModelProperty("物品名称")
    private String itemName;


    @ApiModelProperty("物品分类")
    private Integer category;


    @ApiModelProperty("来源类型")
    private Integer origin;


    @ApiModelProperty("封面图URL（支持实拍图）[3]()")
    private String coverImg;


    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime createdTime;


    @ApiModelProperty("物品库存数量")
    private Integer count;

    @ApiModelProperty("单价")
    private BigDecimal purchasePrice;

    public ItemsForm() {}
}